<template>
  <div>
    <div v-for="(item, index) in infoRightList" :key="index">
      <div class="info-item" v-if="index <= 2">
        <div class="time">
          <h3>2021</h3>
          <span>05-08</span>
        </div>
        <div class="info-acti">
          <h4
            style="font-size: 14px;overflow: hidden;text-overflow:ellipsis;white-space: nowrap; "
          >
            {{ item.newsTitle }}
          </h4>
          <p
            style="font-size: 12px;color: #999999;line-height: 24px;word-break: break-all;text-overflow: ellipsis;display: -webkit-box;
        -webkit-box-orient: vertical;-webkit-line-clamp: 2;overflow: hidden;"
          >
            {{ item.newsTitle }}
          </p>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: "notifiItem",
  props: {
    infoRightList: [],
  },
};
</script>

<style lang="scss" scoped>
.info-item {
  width: 571px;
  background: #ffffff;
  display: flex;
  align-items: center;
  padding: 29px 8px 30px 11px;
  border-bottom: 1px solid #f1f1f1;
}
$color-shadow: rgba(0, 0, 0, 0.25);
.info-item:hover {
  box-shadow: 0 0 5px $color-shadow;
}

.time {
  h3 {
    font-size: 22px;
    color: #333333;
  }
  span {
    font-size: 16px;
    color: #999999;
  }
}
.info-acti {
  width: 392px;
  height: 78px;
  overflow: hidden;
  padding: 7px 14px 6px 13px;
  h4 {
    color: #666666;
  }
  h4:hover {
    color: #2590f4;
  }
}
</style>
